package br.rc.unesp.tcc.business.services;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import br.rc.unesp.tcc.business.to.StudentListTO;
import br.rc.unesp.tcc.model.bean.Student;


//@Service
public class StudentServicesImpl implements StudentServices {
	
	@Override
	public Student findById(final int studentId) {
		return new Student(1, "John", "Smith", new Date());
	}

	@Override
	public StudentListTO findAll() {
		List<Student> studentList = new ArrayList<Student>();
		studentList.add(new Student(1, "John", "Smith", new Date()));
		studentList.add(new Student(2, "Larry", "Parker", new Date()));
		studentList.add(new Student(3, "Brad", "Sanders", new Date()));
		return new StudentListTO(studentList);
	}

}
